from django.contrib.auth.models import Permission
from django.contrib.auth.models import Group
from apps.users.models import User
from rest_framework.viewsets import ModelViewSet
from apps.meiduo_admin.serializers.permission import PermissionSerializer
from apps.meiduo_admin.utils import PageNum


class PermissionModelViewSet(ModelViewSet):

    # 权限的查询结果集
    queryset = Permission.objects.all()

    serializer_class = PermissionSerializer

    pagination_class = PageNum


# class PermissionModelViewSet(ModelViewSet):
#     queryset = Permission.objects.all()
#     serializer_class = PermissionSerializer
#     pagination_class = PageNum
